{template common/header}

<div id="side">
注册帮助
</div>
<div id="content">
{if $action == 'register'}
<h2>注册</h2>
<form action="" method="post" >
<input type="hidden" name="formhash" value="{FORMHASH}" />
	<p>
		<label>Email:</label>
		<input type="text" class="email" id="email" name="email" value="{eval echo @$_POST['email']}" />
	</p>
	<p>
		<label>用户名:</label>
		<input type="text" class="username" name="username" value="{eval echo @$_POST['username']}"/>
	</p>
	<p>
		<label>密码:</label>
		<input type="password" class="password" name="password" id="password" />
	</p>
	<p>
		<label>重复密码:</label>
		<input type="password" class="passwordsec" name="passwordsec" id="passwordsec" />
	</p>
	<p>
		<input type="submit" class="submit" value="注册" name="submit"/>
	</p>
	<p></p>
	<div class="clear"></div>
</form>
{elseif $action == 'login'}
<h2>登陆</h2>
<form action="" method="post">
<input type="hidden" name="formhash" value="{FORMHASH}" />
	<p>
		<label for="email">
			Email:
		</label>
		<input type="text" class="email" name="email" value="{eval echo @$_POST['email']}" id="email" />
	</p>
	<p>
		<label for="password">密码:</label><input type="password" class="password" name="password" id="password" />
	</p>
	<p>
		<input type="submit" name="submit" value="登陆" class="subbox"/>
	</p>
<div class="clear"></div>
</form>
{elseif $action == 'change'}
<div class="pageheader">
	<div class="right">
		<ul class="tabs">
			<!--{if $do == 'renewpro' || !$do}--><li class="active"><!--{else}--><li><!--{/if}-->
				<a href="{URL}?fun=member&action=change&do=renewpro">修改资料</a>
			</li>
			<!--{if $do == 'chavatar'}--><li class="active"><!--{else}--><li><!--{/if}-->
				<a href="{URL}?fun=member&action=change&do=chavatar">修改头像</a>
			</li>
			<!--{if $do == 'chpw'}--><li class="active"><!--{else}--><li><!--{/if}-->
				<a href="{URL}?fun=member&action=change&do=chpw">修改密码</a>
			</li>
		</ul>
	</div>
</div>
<div class="clear"></div>
<!--{if $do == 'renewpro' || !$do}-->
<div class="memberpro">
	<form method="post">
		<input type="hidden" name="formhash" value="{FORMHASH}" />
		<p><label>名字:</label><input type="text" value="{$_G[member][username]}" disabled="disabled" /></p>
		<p><label>电子邮件:</label>
			<input type="text" value="{$_G[member][email]}" disabled="disabled" />
			公开:<input type="checkbox" name="isemail" id="isemail" class="subcheck" {eval if($_G['member']['isemail'] == 1) echo 'checked="checked"';}>
		</p>
		<p><label>城市:</label>
			<input type="text" value="{$_G[member][city]}" disabled="disabled"/>
			公开:<input type="checkbox" name="iscity" id="iscity" class="subcheck" {eval if($_G['member']['iscity'] == 1) echo 'checked="checked"';}>
		</p>
		<!--<p title="一旦设置不可更改，只能是a-z0-9_-组成"><label>个人域名:</label><input name="domain" class=":max_length;15 :alphanum" type="text" {eval if(!empty($_G[member][domain])) echo 'value=\"'.URL.'/'.$_G[member][domain].'\" disabled=\"disabled\"'; else echo 'value=\"\"';}/></p>
		<p><label>昵称:</label><input name="nickname" class=":max_length;16" type="text" value="{$_G[member][nickname]}" /></p>-->
		<hr>
		<p><label>性别:</label>
			{eval echo member::showgender()}
		</p>
		<p><label>生日:</label>
			{eval echo member::showbirthday()}
			{eval echo member::showbirthday('m')}
			{eval echo member::showbirthday('d')}
			公开:<input type="checkbox" name="isbirth" id="isbirth" class="subcheck" {eval if($_G['member']['isbirth'] == 1) echo 'checked="checked"';}>
		</p>
		<p><label>QQ:</label>
			<input name="mqq" class=":number " type="text" value="{$_G[member][qq]}" />
			公开:<input type="checkbox" name="isqq" id="isqq" class="subcheck" {eval if($_G['member']['isqq'] == 1) echo 'checked="checked"';}>
		</p>
		<p><label>电话:</label>
			<input name="phone" class=":number " type="text" value="{$_G[member][phone]}" />
			公开:<input type="checkbox" name="isphone" id="isphone" class="subcheck" {eval if($_G['member']['isphone'] == 1) echo 'checked="checked"';}>
		</p>
		<p><label>博客:</label>http://<input type="text" value="{eval if($_G[member][site]) echo $_G[member][site]}" name="site"></p>
		<!--<p><label>通讯地址:</label>
			<input type="text" value="{$_G[member][address]}" name="address">
			公开:<input type="checkbox" name="isaddress" id="isaddress" class="subcheck" {eval if($_G['member']['isaddress'] == 1) echo 'checked="checked"';}>
		</p>
		<p><label>邮政编码:</label><input type="text" value="{$_G[member][postcode]}" name="postcode" class=":integer" ></p>-->
		<p><label>时区:</label>
			{eval echo member::showtimeoffset()}
		</p>
		<hr>
		<p><label>自我介绍:</label>
			<textarea name="msinght" class=":max_length;150" cols="40" rows="5" >{$_G[member][singht]}</textarea>
		</p>
		<p><input type="submit" name="msubmit" id="msubmit" value="修改！" class="subbox"/></p>
	</form>
</div>
<!--{elseif $do == 'chpw'}-->
<div class="memberpro">
	<form method="post">
		<input type="hidden" name="formhash" value="{FORMHASH}" />
		<p><label>原始密码:</label>
			<input name="mpassword" type="password" class="password" />
		</p>
		<p><label>新密码:</label>
			<input name="rpassword" type="password" class="password" id="rpassword"/>
		</p>
		<p><label>重复密码:</label>
			<input name="rrpassword" type="password" class="password" />
		</p>
		<p>
			<input type="submit" name="psubmit" id="psubmit" value="修改！" class="subbox"/>
		</p>
	</form>
</div>
<!--{elseif $do == 'chavatar'}-->
<div class="memberpro">
	<form method="post" enctype="multipart/form-data">
		<input type="hidden" name="formhash" value="{FORMHASH}" />
		<p>上传头像：<input type="file" name="mavatar" />
		<input type="hidden" name="MAX_FILE_SIZE" value="200000" />
		<input type="submit" name="asubmit" class="subbox" value="修改！"/></p>
	</form>
	<p>
		<img src="{eval echo avatarshow($_G[uid], 'big')}" width="200px"/>
	</p>
	<p>
		<img src="{eval echo avatarshow($_G[uid])}" />
	</p>
</div>
<!--{/if}-->
{elseif $action == 'friend'}
<div class="pageheader">
	<div class="right">
		<ul class="tabs">
			<!--{if $do == 'fans' || !$do}--><li class="active"><!--{else}--><li><!--{/if}-->
				<a href="{URL}?fun=member&action=friend&do=fans">粉丝</a>
			</li>
			<!--{if $do == 'follow'}--><li class="active"><!--{else}--><li><!--{/if}-->
				<a href="{URL}?fun=member&action=friend&do=follow">关注</a>
			</li>
			<!--{if $do == 'each'}--><li class="active"><!--{else}--><li><!--{/if}-->
				<a href="{URL}?fun=member&action=friend&do=each">互粉</a>
			</li>
		</ul>
	</div>
</div>
<div class="clear"></div>
<ul class="avatarcontainers">
	{loop $ls $key $value}
	<li class="inline left">
		<a href="{URL}/{$value[uid]}"><img src="{if $value['avatar'] != ''}{URL}/data/{$value[avatar]}{else}{$default}{/if}" title="{$value[username]}"/></a>
	</li>
	{/loop}
	<div class="clear"></div>
</ul>
{$page}
{/if}
</div>
{template common/footer}